package com.cxm.homework4.anno;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller("userController")
public class UserController {

    @Resource(name = "userService")
    private UserServiceImpl userService;

    public void say(){
        System.out.println("controller say");
        userService.say();
    }
}
